<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>快速入门升级</title>
</head>
<body>
    <!-- 视图 -->
    <div id="div">
        <div>姓名：{{name}}</div>
        <div>班级：{{classRoom}}</div>
        <button onclick="hi()">打招呼</button>
        <button onclick="update()">修改班级</button>
    </div>
</body>
<script src="js/vue.js"></script>
<script>
    let vm = new Vue ({
        el:"#div",
        data :{
            name:"张三",
            classRoom :"黑马159期"
        },
        methods:{
            method01:function () {
                console.log("method01:"+this.name);
            },
            method02(){
                this.cla
            }
        }
        
        
    })
    
  

</script>
</html>